package com.linjj.seckill.domain;

import java.util.Date;

public class User {
    private long userId;//用户id，电话号码
    private String nickname;//用户名称
    private String password;//密码
    private String address;
    private String salt;//盐
    private Date registerTime;//注册时间
    private Date lastLogin;//最后登录时间
    public User(){}

    public User(long userId,String nickname, String password, String salt) {
        this.userId= userId;
        this.nickname = nickname;
        this.password = password;
        this.salt = salt;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", nickname='" + nickname + '\'' +
                ", password='" + password + '\'' +
                ", address='" + address + '\'' +
                ", salt='" + salt + '\'' +
                ", registerTime=" + registerTime +
                ", lastLogin=" + lastLogin +
                '}';
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public Date getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Date registerTime) {
        this.registerTime = registerTime;
    }

    public Date getLastLogin() {
        return lastLogin;
    }

    public void setLastLogin(Date lastLogin) {
        this.lastLogin = lastLogin;
    }
}
